package com.ly.mybatis.mapper;

import com.ly.mybatis.entity.Meal;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ly
 * @since 2021-01-20
 */
public interface MealMapper extends BaseMapper<Meal> {

    List<Meal> selectByMealParamter(@Param("name") String name, @Param("type") Integer type, @Param("priceMin") Double priceMin, @Param("priceMax") Double priceMax);

    List<Meal> selectByType(@Param("way") int w);

    List<Meal> selectByTypes(@Param("types") List<Integer> types);
}
